
          
                        <div class="form-panel">
                        <h4 class="mb"><i class="fa fa-tags"></i> Semua Produk</h4>
                          <table class="table table-striped table-advance table-hover">
                              <thead>
                              <tr>
                                  <th> No</th>
                                  <th> Kategori</th>
                                  <th> Nama</th>
                                  <th> Deskripsi</th>
                                  <th> Harga</th>
                                  <th> Stok</th>
                                  <th> Berat</th>
                                  <th> Tgl Masuk</th>
                                  <th> Gambar</th>
                                  <th> Terjual</th>
                                  <th> Edit/Delete</th>
                              </tr>
                              </thead>
                              <tbody>
                              <?php foreach ($getproduk as $lp):?>
                              <tr>
                                  <td><?php echo $lp->id_produk;?></td>
                                  <td><?php echo $lp->id_kategori;?></td>
                                  <td><?php echo $lp->nama_produk;?></td>
                                  <td><?php echo $lp->deskripsi;?></td>
                                  <td><?php echo $lp->harga;?></td>
                                  <td><?php echo $lp->stok;?></td>
                                  <td><?php echo $lp->berat;?></td>
                                  <td><?php echo $lp->tgl_masuk;?></td>
                                  <td><img src="<?php echo base_url('assets/img/'.$lp->gambar);?>" height="100px" width="100px"></td>
                                  <td><?php echo $lp->dibeli;?></td>
                                  <td class="center">
                                      <a href="<?= base_url()?>index.php/ctrl_produk/updateproduk/<?=$lp->id_produk?>" class="btn btn-primary btn-xs"><span class="fa fa-pencil"> Edit</a>
                                      <a href="<?= base_url()?>index.php/ctrl_produk/deleteProdukDb/<?=$lp->id_produk?>" class="btn btn-danger btn-xs" onclick="return confirm('Hapus data?')"><span class="fa fa-trash-o"> Delete</a>
                                 </td>
                              </tr>
                              <?php endforeach?>
                              </tbody>
                          </table>
                      </div><!-- /content-panel -->

                      <div class="form" style="text-align:center">
          <a class="btn btn-primary" href="<?php echo site_url()?>/ctrl_produk/tambahproduk">Tambah Produk</a>
          </div>